package com.spring.sd.cycle;

import com.spring.sd.aop.MeControllerV2;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication(scanBasePackages = "com.spring.sd.cycle")
public class AopApplication {

    public static void main(String[] args) {

        ConfigurableApplicationContext context = SpringApplication.run(AopApplication.class, args);
        A a = context.getBean(A.class);

        try{
            a.test();
        }finally {
            context.close();
        }
    }


}
